<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCnDiseaseDictionary extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('st_cn_disease_dictionary', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name', 64)->index()->comment('诊断名称');
            $table->string('mnemonic_wor')->index()->nullable()->comment('助记词');
            $table->string('icd')->comment('icd 编码');
            $table->unsignedInteger('sort');
            $table->unsignedInteger('doctor_id');
            $table->unsignedInteger('updated_by');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('st_cn_disease_dictionary');
    }
}
